package com.crpc.common.crpcEnum;

/**
 * @author wzy
 * @version 1.0
 * @description: 枚举类 用来标记请求类型
 * @date 2023/9/28 23:26
 */
public enum ResponseType {
    //普通请求
    SUCCESS((byte) 1, "成功"),
    //心跳检测
    FAIL((byte) 2, "失败");

    private byte code;
    private String desc;

    ResponseType(byte code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public byte getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
